<?php

	$article = new Article($_GET['id']);

?>
                                        
            <div class="twoCollumns">
            	<div class="leftCollumn">

                	<div class="leftBox">
                    	<img src="media/vesti/slike/<?php echo $article->slika; ?>" alt="<?php echo $article->naslov; ?>" title="<?php echo $article->naslov; ?>" />
                    </div>
                    <h3 class="smallBoxTitle"><a href="#"><?php echo $article->datum; ?></a></h3>
                    
                	<div class="leftBox">
                    	<div class="articleHolder">
                        	<h1 class="articleHeader"><?php echo $article->naslov; ?></h1>
                            <?php echo $article->tekst; ?>
                            <div style="padding:5px 0; border-top:1px solid #DFDFDF;" class="fb-like" data-href="<?php echo $article->getFacebookUrl(); ?>" data-send="true" data-width="580" data-show-faces="true"></div>
                        </div>
                    </div>
                    
                	<div class="leftBox">
                    	<div class="fb-comments" data-href="<?php echo $article->getFacebookUrl(); ?>" data-num-posts="5" data-width="620"></div>
                    </div>
                    <h3 class="smallBoxTitle"><a>Leave a Comment</a></h3>
                    
                </div><!-- end of left collumn -->
                
                <div class="rightCollumn">
                
                	<div class="smallBox">
                    <div class="otherArticles">
                    <?php
						$blog = new Blog();
						$blog->getArticles();
						
						foreach($blog->artikli as $art) {
					?>
                    	<a href="article/<?php echo $art->id; ?>/<?php echo str_replace(" ", "-", $art->naslov); ?>"><?php echo $art->naslov; ?></a>
                    <?php		
						}
					?>
                    </div>
                    </div>
                    <h3 class="smallBoxTitle"><a href="#">Other Articles</a></h3>
                    
                </div>
            </div><!-- end of middle_content -->